package com.koron.order.cockpit.service;

import com.koron.bean.base.Response;
import com.koron.bean.query.PageQuery;
import org.koron.ebs.mybatis.SessionFactory;

public interface YcCockpitService {

    // 根据日期查询缺陷工单各阶段状态的数量
    Response getDefectTypeAndCountByDate(SessionFactory factory, String date);

    // 根据日期查询巡视工单
    Response getPatrolCountByDate(SessionFactory factory, String date);

    // 获取工单总数量
    Response sumOrderTotal(SessionFactory factory);

    // 获取两票总数量
    Response sumTicketTotal(SessionFactory factory);

    // 设备状态
    Response getEquipmentStatus(SessionFactory factory, PageQuery pageQuery);

    // 合格率-消缺率
    Response getDefectRate(SessionFactory factory, String date);

    // 合格率-消缺及时率
    Response getDefectInTimeRate(SessionFactory factory, String date);

    // 工单抽查合格率
    Response getOrderCheckPassRate(SessionFactory factory, String date) throws InterruptedException;

    // 两票抽查合格率
    Response getTicketCheckPassRate(SessionFactory factory, String date) throws InterruptedException;
}
